package com.qny.ai.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@TableName("app_role")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class AppRole {
    @TableId(type = IdType.AUTO)
    private Long id;

    private String name;
    private Long creatorId;
    private Integer isSystem;
    private String status;
    private String privacy;
    private String avatarUrl;
    private String background;
    private String personality;
    private String languageStyle;
    private String promptTemplate;
    private String openingLine;

    @TableField("parameters")
    private String parametersJson;

    private String defaultVoiceType;
    private String category;
    private String description;
    private String tags;
    private BigDecimal averageRating;
    private Integer ratingCount;
    private Integer shareCount;
    private Integer usageCount;
    private Integer favoriteCount;
    private LocalDateTime createdAt;
    private LocalDateTime updatedAt;
}


